package com.duo.service;

import com.duo.dto.ShoppingCartCacheDTO;
import com.duo.dto.ShoppingCartDTO;

import java.util.List;

/**
 * @Author: Xrx
 * @Description:
 * @CreateTime: 2023/7/8 20:54
 */
public interface ShoppingCartService {

    /**
     * 添加购物车
     */
    void addShoppingCart(List<ShoppingCartDTO> shoppingCartDTOList, Long userId);

    /**
     * 查看购物车
     * @return
     */
    List<ShoppingCartCacheDTO> showShoppingCart(Long userId);

    /**
     * 清空购物车
     */
    void cleanShoppingCart(Long userId);


}
